﻿
using HamcoWcs.Entitys.BaseConfigs;
using System.Threading.Tasks;

namespace HamcoWcs.Contract.ContractCommon
{
    public interface IBaseConfigService
    {
        string GetConfigValue(string configKey);
        bool TryGetConfigValue(string key, out string value);
        bool SetConfigMsg(string configKey, string configValue);

        /// <summary>
        /// 新增数据字典
        /// </summary>
        void AddConfig(BaseConfig config);
        /// <summary>
        /// 删除对应键值的数据
        /// </summary>
        bool DeleteConfig(string key);
    }
}
